package com.overseasShopping.Biz.impl;

import com.overseasShopping.Base.DAOImpl.WalletDAOImpl;
import com.overseasShopping.Base.DAOImpl.WalletDetailDAOImpl;
import com.overseasShopping.Biz.WalletBiz;
import com.overseasShopping.pojo.Wallet;
import com.overseasShopping.pojo.WalletDetail;

public class WalletBizImpl implements WalletBiz{
	private WalletDAOImpl walletDAO=null;
	
	public void setWalletDAO(WalletDAOImpl walletDAO) {
		this.walletDAO = walletDAO;
	}
	

	

	public Float getBalance(String userId) {
		return walletDAO.getBalance(userId);
	}

	public Wallet getWallet(String userId) {
		return walletDAO.get(userId);
	}




	public void updateMoney(Wallet wallet) {
		walletDAO.update(wallet);
		
	}






}
